﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.Bliss.Infrastructure;

namespace com.Bliss
{
    public class User : IMessage
    {
        public int ID { get; set; }
        public int CompanyID { get; set; }
        public string Email { get; set; }
        public string Password { get; set; }
        public string Name { get; set; }
        public string Country { get; set; }
        public DateTime RegisterDate { get; set; }
        public DateTime? LastLogin { get; set; }
        public string Description { get; set; }
        public string ImageName { get; set; }

        public virtual ICollection<Role> Roles { get; set; }
        public virtual ICollection<Group> Groups { get; set; }

        public virtual ICollection<Post> Posts { get; set; }
        public virtual ICollection<Post> PostsTo { get; set; }
        public virtual ICollection<Friend> Friends { get; set; }
    }
}
